
$(function(){
    loadApplet();
    // var isDisplay = antUtil.getSessionStorage('isDisplay');
    // if(isDisplay =='true'){
    //     showApplet();
    // }else{
    //     loadApplet();
    // }
});

function getParam(name) {

    var iframe =$("#iframeModal",parent.document);
    var data_url = iframe.attr('data-url');

    var ipReg = /\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/;
    var ip = ipReg.exec(data_url);

    var myReg = /.+:(\d{1,5})/;
    var address = data_url.match(myReg);
    var webRoot = (address[0]);
    var port = (address[1]);

    var ipPort = ip+':'+port;

    if(name=='webRoot'){
        return webRoot;
    }
    if(name=='ipPort'){
        return ipPort;

    }
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
    var reg_rewrite = new RegExp("(^|/)" + name + "/([^/]*)(/|$)", "i");
    var r = data_url.substr(1).match(reg);
    var q = data_url.substr(1).match(reg_rewrite);
    if(r != null){
        return unescape(r[2]);
    }else if(q != null){
        return unescape(q[2]);
    }else{
        return null;
    }
}



//加载F3 用applet

function loadApplet() {

    //动态加载applet

    var data_url =$("data-url",parent.document).text();

    var jnlp = getParam('jnlp');
    var webRoot = getParam('webRoot');
    var appName = "admin.license";
    var systemBundles='';
    var sessionId='';
    var userName = antUtil.getSessionStorage('name');
    var userId = antUtil.getSessionStorage('userId');
    var setyear = antUtil.getSessionStorage('nd');
    var userCode = antUtil.getSessionStorage('userName');
    var menuid = getParam('menuid');
    var menuname = getParam('menuname');
    var isfrom = getParam('isfrom');
    var rgcode = getParam('rgcode');
    var sysapp = getParam('sysapp');
    var moduleid = getParam('moduleid');
    var ipPort = getParam('ipPort');
    var bill_no = getParam('bill_no');
    var task_type = getParam('task_type');
    var vt_code = getParam('vt_code');
    var password = getParam('passwd');


    //获取右半部分div 的高度，并给object 赋值
    var iframe = $("#iframeModal",parent.document);
    var rightContent = iframe.parent();
    var height = rightContent.css('height');

    var html='';
    html +='<object classid="clsid:CAFEEFAC-0016-0000-0026-ABCDEFFEDCBA"';
    html +='codebase="'+webRoot+'/download/java/jre6u26.CAB#Version=6,0,26,3"';
    html +='WIDTH="100%" HEIGHT="'+height+'px" name="f3Main" id="f3Main">';

    html +='<PARAM name="java_arguments" value="-Xms80m -Xmx1000m -Djnlp.packEnabled=true"> ';
    html +='<PARAM NAME=CODE VALUE="com.ufgov.portal.applet.F3Applet.class">';
    html +='<PARAM NAME=CODEBASE VALUE="'+webRoot+'/fap/client">';
    html +='<PARAM NAME=ARCHIVE VALUE="gov.gfmis.fi.fip.client_3.0.4.jar, gov.gfmis.thirdparty.fap.jdic_1.0.0.jar, gov.gfmis.offline.common_3.0.4.jar, gov.gfmis.fr.common_3.0.4.jar, gov.gfmis.thirdparty.fap.skinlf_1.0.0.jar, gov.gfmis.pay.client.pay_3.0.4.jar, gov.gfmis.thirdparty.fap.jug_1.0.0.jar, gov.gfmis.fap.report.search.client_3.0.4.jar, servlet.jar, gov.gfmis.zxzj.common_1.0.0.jar, gov.gfmis.fap.client.workflow_3.0.4.jar, poi-2.5.1-final-20040804.jar, gov.gfmis.fi.processinspect.common_3.0.4.jar, gov.gfmis.fb.client.sh_1.0.0.jar, gov.gfmis.webservices.common_1.0.0.jar, log4j-1.2.12.jar, gov.gfmis.gp.client.sh_1.0.0.jar, jdom.jar, org.eclipse.equinox.common_3.6.0.v20100503.jar, gov.gfmis.pay.client.sh_1.0.0.jar, gov.gfmis.thirdparty.fap.pinyin4j_2.5.0.jar, gov.gfmis.salary.common.shsj_1.0.0.jar, gov.gfmis.budget.client_3.0.4.jar, com.ufgov.thirdparty.hibernate_3.0.0.jar, gov.gfmis.fb.common.sh_1.0.0.jar, jtds-1.2.2.jar, gov.gfmis.pay.common.sh_1.0.0.jar, gov.gfmis.fund.common_1.0.0.jar, jaxen-1.1-beta-4.jar, gov.gfmis.offline.client_3.0.4.jar, com.ufgov.portal.client.run_1.0.0.jar, gov.gfmis.webservices.client_1.0.0.jar, com.ufgov.portal.client.integrate_1.0.0.jar, gov.gfmis.zxzj.client_1.0.0.jar, commons-lang.jar, gov.gfmis.fr.client_3.0.4.jar, gov.gfmis.gl.client_3.0.3.jar, gov.gfmis.pay.dzzf.common_1.0.0.jar, gov.gfmis.thirdparty.gl.utilcy_1.0.0.jar, gov.gfmis.pay.common_3.0.4.jar, spring.jar, gov.gfmis.thirdparty.common.jfreechart_1.0.0.jar, gov.gfmis.budget.client.sh_1.0.0.jar, gov.gfmis.thirdparty.common.jcommon_1.0.0.jar, gov.gfmis.fi.fip.common_3.0.4.jar, gov.gfmis.budget.common_3.0.4.jar, gov.gfmis.fi.processinspect.client_3.0.4.jar, commons-codec.jar, gov.gfmis.thirdparty.fap.jbcl_1.0.0.jar, gov.gfmis.inspect.common.sh_1.0.0.jar, gov.gfmis.fund.client_1.0.0.jar, gov.gfmis.fap.common.framework_3.0.4.jar, gov.gfmis.fap.client.framework_3.0.4.jar, dom4j-1.6.jar, gov.gfmis.pay.client.plan_3.0.4.jar, ant.jar, commons-logging.jar, gov.gfmis.budget.common.sh_1.0.0.jar, gov.gfmis.fap.client.gl_3.0.4.jar, asm.jar, gov.gfmis.inspect.client.sh_1.0.0.jar, bsh-2.0b4.jar, spring-mock.jar, commons-httpclient-2.0.jar, com.ufgov.client.osgi.launcher_1.0.0.jar, gov.gfmis.fap.common_3.0.4.jar, gov.gfmis.inspectquery.client.sh_1.0.0.jar, devToolsBasic.jar, jacob.jar, gov.gfmis.report.common_3.0.4.jar, gov.gfmis.thirdparty.inspect.iText_1.0.0.jar, gov.gfmis.gl.common_3.0.3.jar, commons-beanutils.jar, com.ufgov.thirdparty.hessian_3.2.1.jar, gov.gfmis.pay.client.paycard_3.0.4.jar, gov.gfmis.thirdparty.fap.gtkskin_1.0.0.jar, commons-logging-api.jar, gov.gfmis.inspectquery.common.sh_1.0.0.jar, org.eclipse.update.configurator_3.3.100.v20100512.jar, gov.gfmis.gp.common.sh_1.0.0.jar, gov.gfmis.f_epay.client.core_3.0.4.jar, gov.gfmis.pay.dzzf.client_1.0.0.jar, concurrent.jar, gov.gfmis.report.client_3.0.4.jar, gov.gfmis.salary.client_3.0.4.jar, gov.gfmis.thirdpart.koalii.svs.czb.client_1.0.0.jar, gov.gfmis.fap.client.dictionary_3.0.4.jar, devrm300client.jar, FineCell.jar, com.ufgov.gmap.equinox.extend_1.0.0.jar, jxl-2.6.9.jar, FineReport.jar, gov.gfmis.f_epay.common.core_3.0.4.jar, gov.gfmis.thirdparty.swt_1.0.0.jar, com.ufgov.thirdparty.rhino_1.4.0.jar, gov.gfmis.thirdparty.fap.util_1.0.0.jar, gov.gfmis.salary.common_3.0.4.jar, gov.gfmis.thirdparty.fap.workflow_cy_1.0.0.jar, cglib-2.1.2.jar, org.eclipse.osgi_3.6.2.R36x_v20110210.jar, gov.gfmis.salary.client.shsj_1.0.0.jar, gov.gfmis.thirdparty.fap.forms_1.0.4.jar, gov.gfmis.fap.report.search.common_3.0.4.jar">';
    html +='<param name="type" value="application/x-java-applet;jpi-version=1.6.0_12">';
    html +='<param name="scriptable" value="true">';
    html +='<param name="sessionId" value="'+sessionId+'">';
    html +='<param name="webRoot" value="'+webRoot+'/'+appName+'">';

    html += '<param name="username" value="'+userName+'">';


    html += '<param name="passwd" value="'+password+'">';
    html += '<param name="app" value="/gfmis/login">';
    html += '<param name="setyear" value="'+setyear+'">';
    html += '<param name="uid" value="'+userId+'">';
    html += '<param name="sid" value="'+userId+'">';
    html += '<param name="menuid" value="'+menuid+'">';
    html += '<param name="jnlp" value="'+jnlp+'">';


    html += '<param name="usercode" value="'+userCode+'">';
    html += '<param name="menuname" value="'+menuname+'">';
    html += '<param name="isfrom" value="'+isfrom+'">';
    html += '<param name="rgcode" value="'+rgcode+'">';
    html += '<param name="sysapp" value="'+sysapp+'">';
    html += '<param name="parameterNames" value="sessionId,webRoot,username,passwd,app,setyear,uid,sid,menuid,jnlp,usercode,menuname,isfrom,rgcode,sysapp">';

    html += '<param name="gmapSystemBundles" value="org.eclipse.equinox.registry_3.5.0.v20100503.jar:1484198568000,org.eclipse.osgi.services_3.2.100.v20100503.jar:1484198566000,org.eclipse.core.runtime_3.6.0.v20100505.jar:1484198579000,org.eclipse.equinox.app_1.3.1.R36x_v20100803.jar:1484198565000,org.eclipse.core.jobs_3.5.1.R36x_v20100824.jar:1484198574000,org.eclipse.equinox.preferences_3.3.0.v20100503.jar:1484198570000,org.eclipse.core.contenttype_3.4.100.v20100505-1235.jar:1484198570000,com.ufgov.gmap.spi_1.0.0.jar:0,com.ufgov.thirdparty.hessian_3.2.1.jar:1484198495000,com.ufgov.client.basis_1.0.0.jar:0,com.ufgov.client.master_1.0.0.jar:0,com.ufgov.smartclient.component_1.0.0.jar:1484198495000,com.ufgov.smartclient.laf_1.0.0.jar:1484198495000,com.springsource.org.json-1.0.0.jar:1484198495000">';
    html += '<param name="sysapp" value="'+sysapp+'">';
    html += '<param name="ipandport" value="'+ipPort+'">';
    html += '<param name="userid" value="'+userId+'">';
    html += '<param name="usercode" value="'+userCode+'">';
    html += '<param name="username" value="'+userName+'">';
    html += '<param name="rgcode" value="'+rgcode+'">';
    html += '<param name="sid"  value="'+userId+'">';
    html += '<param name="menuid" value="'+menuid+'">';
    html += '<param name="moduleid" value="'+moduleid+'">';

    html +='<param name="isfrom" value="'+isfrom+'">';
    html +='<param name="setyear" value="'+setyear+'">';
    html +='<param name="password" value="'+password+'">';
    html +='<param name="systemview" value="1">';
    html +='<param name="bill_no" value="'+bill_no+'">';
    html +='<param name="task_type" value="'+task_type+'">';
    html +='<param name="vt_code" value="'+vt_code+'">';

    html +='<comment>';

    html +='<embed type="application/x-java-applet;version=1.6"';
    html +='pluginspage="http://java.sun.com/products/plugin/"';
    html +='java_code="com.ufgov.portal.applet.F3Applet.class"';
    html +='codebase="<%=webRoot%>/fap/client" ';
    html +='java_archive="gov.gfmis.fi.fip.client_3.0.4.jar, gov.gfmis.thirdparty.fap.jdic_1.0.0.jar, gov.gfmis.offline.common_3.0.4.jar, gov.gfmis.fr.common_3.0.4.jar, gov.gfmis.thirdparty.fap.skinlf_1.0.0.jar, gov.gfmis.pay.client.pay_3.0.4.jar, gov.gfmis.thirdparty.fap.jug_1.0.0.jar, gov.gfmis.fap.report.search.client_3.0.4.jar, servlet.jar, gov.gfmis.zxzj.common_1.0.0.jar, gov.gfmis.fap.client.workflow_3.0.4.jar, poi-2.5.1-final-20040804.jar, gov.gfmis.fi.processinspect.common_3.0.4.jar, gov.gfmis.fb.client.sh_1.0.0.jar, gov.gfmis.webservices.common_1.0.0.jar, log4j-1.2.12.jar, gov.gfmis.gp.client.sh_1.0.0.jar, jdom.jar, org.eclipse.equinox.common_3.6.0.v20100503.jar, gov.gfmis.pay.client.sh_1.0.0.jar, gov.gfmis.thirdparty.fap.pinyin4j_2.5.0.jar, gov.gfmis.salary.common.shsj_1.0.0.jar, gov.gfmis.budget.client_3.0.4.jar, com.ufgov.thirdparty.hibernate_3.0.0.jar, gov.gfmis.fb.common.sh_1.0.0.jar, jtds-1.2.2.jar, gov.gfmis.pay.common.sh_1.0.0.jar, gov.gfmis.fund.common_1.0.0.jar, jaxen-1.1-beta-4.jar, gov.gfmis.offline.client_3.0.4.jar, com.ufgov.portal.client.run_1.0.0.jar, gov.gfmis.webservices.client_1.0.0.jar, com.ufgov.portal.client.integrate_1.0.0.jar, gov.gfmis.zxzj.client_1.0.0.jar, commons-lang.jar, gov.gfmis.fr.client_3.0.4.jar, gov.gfmis.gl.client_3.0.3.jar, gov.gfmis.pay.dzzf.common_1.0.0.jar, gov.gfmis.thirdparty.gl.utilcy_1.0.0.jar, gov.gfmis.pay.common_3.0.4.jar, spring.jar, gov.gfmis.thirdparty.common.jfreechart_1.0.0.jar, gov.gfmis.budget.client.sh_1.0.0.jar, gov.gfmis.thirdparty.common.jcommon_1.0.0.jar, gov.gfmis.fi.fip.common_3.0.4.jar, gov.gfmis.budget.common_3.0.4.jar, gov.gfmis.fi.processinspect.client_3.0.4.jar, commons-codec.jar, gov.gfmis.thirdparty.fap.jbcl_1.0.0.jar, gov.gfmis.inspect.common.sh_1.0.0.jar, gov.gfmis.fund.client_1.0.0.jar, gov.gfmis.fap.common.framework_3.0.4.jar, gov.gfmis.fap.client.framework_3.0.4.jar, dom4j-1.6.jar, gov.gfmis.pay.client.plan_3.0.4.jar, ant.jar, commons-logging.jar, gov.gfmis.budget.common.sh_1.0.0.jar, gov.gfmis.fap.client.gl_3.0.4.jar, asm.jar, gov.gfmis.inspect.client.sh_1.0.0.jar, bsh-2.0b4.jar, spring-mock.jar, commons-httpclient-2.0.jar, com.ufgov.client.osgi.launcher_1.0.0.jar, gov.gfmis.fap.common_3.0.4.jar, gov.gfmis.inspectquery.client.sh_1.0.0.jar, devToolsBasic.jar, jacob.jar, gov.gfmis.report.common_3.0.4.jar, gov.gfmis.thirdparty.inspect.iText_1.0.0.jar, gov.gfmis.gl.common_3.0.3.jar, commons-beanutils.jar, com.ufgov.thirdparty.hessian_3.2.1.jar, gov.gfmis.pay.client.paycard_3.0.4.jar, gov.gfmis.thirdparty.fap.gtkskin_1.0.0.jar, commons-logging-api.jar, gov.gfmis.inspectquery.common.sh_1.0.0.jar, org.eclipse.update.configurator_3.3.100.v20100512.jar, gov.gfmis.gp.common.sh_1.0.0.jar, gov.gfmis.f_epay.client.core_3.0.4.jar, gov.gfmis.pay.dzzf.client_1.0.0.jar, concurrent.jar, gov.gfmis.report.client_3.0.4.jar, gov.gfmis.salary.client_3.0.4.jar, gov.gfmis.thirdpart.koalii.svs.czb.client_1.0.0.jar, gov.gfmis.fap.client.dictionary_3.0.4.jar, devrm300client.jar, FineCell.jar, com.ufgov.gmap.equinox.extend_1.0.0.jar, jxl-2.6.9.jar, FineReport.jar, gov.gfmis.f_epay.common.core_3.0.4.jar, gov.gfmis.thirdparty.swt_1.0.0.jar, com.ufgov.thirdparty.rhino_1.4.0.jar, gov.gfmis.thirdparty.fap.util_1.0.0.jar, gov.gfmis.salary.common_3.0.4.jar, gov.gfmis.thirdparty.fap.workflow_cy_1.0.0.jar, cglib-2.1.2.jar, org.eclipse.osgi_3.6.2.R36x_v20110210.jar, gov.gfmis.salary.client.shsj_1.0.0.jar, gov.gfmis.thirdparty.fap.forms_1.0.4.jar, gov.gfmis.fap.report.search.common_3.0.4.jar"';
    html +='java_arguments="-Xms256m -Xmx256m" scriptable="true" mayscript="true"';
    html +='sessionId="'+sessionId+'"';
    html +='webRoot="'+webRoot+'/'+appName+'"';

    html +='username="'+userName+'"';
    html +='passwd="'+password+'"';
    html +='app="/gfmis/login"';
    html +='setyear="'+setyear+'"';
    html +='uid="'+userId+'"';
    html +='sid="'+userId+'"';
    html +='menuid="'+menuid+'"';

    html +='jnlp="'+jnlp+'"';
    html +='usercode="'+userCode+'"';
    html +='menuname="'+menuname+'"';
    html +='isfrom="'+isfrom+'"';
    html +='rgcode="'+rgcode+'"';
    html +='sysapp="'+sysapp+'"';
    html +='parameterNames="sessionId,webRoot,username,passwd,app,setyear,uid,sid,menuid,jnlp,usercode,menuname,isfrom,rgcode,sysapp,username,passwd,app,setyear,uid,sid,menuid,jnlp,usercode,menuname,isfrom,rgcode,sysapp"' +
        'gmapSystemBundles="org.eclipse.equinox.registry_3.5.0.v20100503.jar:1484198568000,org.eclipse.osgi.services_3.2.100.v20100503.jar:1484198566000,org.eclipse.core.runtime_3.6.0.v20100505.jar:1484198579000,org.eclipse.equinox.app_1.3.1.R36x_v20100803.jar:1484198565000,org.eclipse.core.jobs_3.5.1.R36x_v20100824.jar:1484198574000,org.eclipse.equinox.preferences_3.3.0.v20100503.jar:1484198570000,org.eclipse.core.contenttype_3.4.100.v20100505-1235.jar:1484198570000,com.ufgov.gmap.spi_1.0.0.jar:0,com.ufgov.thirdparty.hessian_3.2.1.jar:1484198495000,com.ufgov.client.basis_1.0.0.jar:0,com.ufgov.client.master_1.0.0.jar:0,com.ufgov.smartclient.component_1.0.0.jar:1484198495000,com.ufgov.smartclient.laf_1.0.0.jar:1484198495000,com.springsource.org.json-1.0.0.jar:1484198495000"';
    html +='>';

    html +='<noembed> &lt;hr&gt; this explore not support plug in </noembed></comment>';
    html +=' </object>';

    // isDisplay 置为true
    isDisplay=true;
    sessionStorage['isDisplay'] = true;

    $('#appletDiv').html(html);

    setTimeout(function(){
        $('#f3Main').click();
        }, 3000);




    // var height = screen.availHeight;
    // var width = screen.availWidth;
    //
    // var applet = window.document.getElementById("f3Main");


}

//第二次加载F3 用applet

function showApplet() {

    //动态加载applet

    var data_url =$("data-url",parent.document).text();
    var jnlp = getParam('jnlp');
    var webRoot = getParam('webRoot');
    var appName = "admin.license";
    var systemBundles='';
    var sessionId='';
    var userName = antUtil.getSessionStorage('name');
    var userId = antUtil.getSessionStorage('userId');
    var setyear = antUtil.getSessionStorage('nd');
    var userCode = antUtil.getSessionStorage('userName');
    var menuid = getParam('menuid');
    var menuname = getParam('menuname');
    var isfrom = getParam('isfrom');
    var rgcode = getParam('rgcode');
    var sysapp = getParam('sysapp');
    var moduleid = getParam('moduleid');
    var ipPort = getParam('ipPort');
    var bill_no = getParam('bill_no');
    var task_type = getParam('task_type');
    var vt_code = getParam('vt_code');
    var password = getParam('passwd');


    //获取右半部分div 的高度，并给object 赋值
    var iframe = $("#iframeModal",parent.document);
    var rightContent = iframe.parent();
    var height = rightContent.css('height');

    var html='';
    // html +='<object classid="clsid:CAFEEFAC-0016-0000-0026-ABCDEFFEDCBA"';
    // html +='codebase="'+webRoot+'/download/java/jre6u26.CAB#Version=6,0,26,3"';
    // html +='WIDTH="100%" HEIGHT="'+height+'px" name="f3Main" id="f3Main">';

    html +='<PARAM name="java_arguments" value="-Xms80m -Xmx1000m -Djnlp.packEnabled=true"> ';
    html +='<PARAM NAME=CODE VALUE="com.ufgov.portal.applet.F3Applet.class">';
    html +='<PARAM NAME=CODEBASE VALUE="'+webRoot+'/fap/client">';
    html +='<PARAM NAME=ARCHIVE VALUE="gov.gfmis.fi.fip.client_3.0.4.jar, gov.gfmis.thirdparty.fap.jdic_1.0.0.jar, gov.gfmis.offline.common_3.0.4.jar, gov.gfmis.fr.common_3.0.4.jar, gov.gfmis.thirdparty.fap.skinlf_1.0.0.jar, gov.gfmis.pay.client.pay_3.0.4.jar, gov.gfmis.thirdparty.fap.jug_1.0.0.jar, gov.gfmis.fap.report.search.client_3.0.4.jar, servlet.jar, gov.gfmis.zxzj.common_1.0.0.jar, gov.gfmis.fap.client.workflow_3.0.4.jar, poi-2.5.1-final-20040804.jar, gov.gfmis.fi.processinspect.common_3.0.4.jar, gov.gfmis.fb.client.sh_1.0.0.jar, gov.gfmis.webservices.common_1.0.0.jar, log4j-1.2.12.jar, gov.gfmis.gp.client.sh_1.0.0.jar, jdom.jar, org.eclipse.equinox.common_3.6.0.v20100503.jar, gov.gfmis.pay.client.sh_1.0.0.jar, gov.gfmis.thirdparty.fap.pinyin4j_2.5.0.jar, gov.gfmis.salary.common.shsj_1.0.0.jar, gov.gfmis.budget.client_3.0.4.jar, com.ufgov.thirdparty.hibernate_3.0.0.jar, gov.gfmis.fb.common.sh_1.0.0.jar, jtds-1.2.2.jar, gov.gfmis.pay.common.sh_1.0.0.jar, gov.gfmis.fund.common_1.0.0.jar, jaxen-1.1-beta-4.jar, gov.gfmis.offline.client_3.0.4.jar, com.ufgov.portal.client.run_1.0.0.jar, gov.gfmis.webservices.client_1.0.0.jar, com.ufgov.portal.client.integrate_1.0.0.jar, gov.gfmis.zxzj.client_1.0.0.jar, commons-lang.jar, gov.gfmis.fr.client_3.0.4.jar, gov.gfmis.gl.client_3.0.3.jar, gov.gfmis.pay.dzzf.common_1.0.0.jar, gov.gfmis.thirdparty.gl.utilcy_1.0.0.jar, gov.gfmis.pay.common_3.0.4.jar, spring.jar, gov.gfmis.thirdparty.common.jfreechart_1.0.0.jar, gov.gfmis.budget.client.sh_1.0.0.jar, gov.gfmis.thirdparty.common.jcommon_1.0.0.jar, gov.gfmis.fi.fip.common_3.0.4.jar, gov.gfmis.budget.common_3.0.4.jar, gov.gfmis.fi.processinspect.client_3.0.4.jar, commons-codec.jar, gov.gfmis.thirdparty.fap.jbcl_1.0.0.jar, gov.gfmis.inspect.common.sh_1.0.0.jar, gov.gfmis.fund.client_1.0.0.jar, gov.gfmis.fap.common.framework_3.0.4.jar, gov.gfmis.fap.client.framework_3.0.4.jar, dom4j-1.6.jar, gov.gfmis.pay.client.plan_3.0.4.jar, ant.jar, commons-logging.jar, gov.gfmis.budget.common.sh_1.0.0.jar, gov.gfmis.fap.client.gl_3.0.4.jar, asm.jar, gov.gfmis.inspect.client.sh_1.0.0.jar, bsh-2.0b4.jar, spring-mock.jar, commons-httpclient-2.0.jar, com.ufgov.client.osgi.launcher_1.0.0.jar, gov.gfmis.fap.common_3.0.4.jar, gov.gfmis.inspectquery.client.sh_1.0.0.jar, devToolsBasic.jar, jacob.jar, gov.gfmis.report.common_3.0.4.jar, gov.gfmis.thirdparty.inspect.iText_1.0.0.jar, gov.gfmis.gl.common_3.0.3.jar, commons-beanutils.jar, com.ufgov.thirdparty.hessian_3.2.1.jar, gov.gfmis.pay.client.paycard_3.0.4.jar, gov.gfmis.thirdparty.fap.gtkskin_1.0.0.jar, commons-logging-api.jar, gov.gfmis.inspectquery.common.sh_1.0.0.jar, org.eclipse.update.configurator_3.3.100.v20100512.jar, gov.gfmis.gp.common.sh_1.0.0.jar, gov.gfmis.f_epay.client.core_3.0.4.jar, gov.gfmis.pay.dzzf.client_1.0.0.jar, concurrent.jar, gov.gfmis.report.client_3.0.4.jar, gov.gfmis.salary.client_3.0.4.jar, gov.gfmis.thirdpart.koalii.svs.czb.client_1.0.0.jar, gov.gfmis.fap.client.dictionary_3.0.4.jar, devrm300client.jar, FineCell.jar, com.ufgov.gmap.equinox.extend_1.0.0.jar, jxl-2.6.9.jar, FineReport.jar, gov.gfmis.f_epay.common.core_3.0.4.jar, gov.gfmis.thirdparty.swt_1.0.0.jar, com.ufgov.thirdparty.rhino_1.4.0.jar, gov.gfmis.thirdparty.fap.util_1.0.0.jar, gov.gfmis.salary.common_3.0.4.jar, gov.gfmis.thirdparty.fap.workflow_cy_1.0.0.jar, cglib-2.1.2.jar, org.eclipse.osgi_3.6.2.R36x_v20110210.jar, gov.gfmis.salary.client.shsj_1.0.0.jar, gov.gfmis.thirdparty.fap.forms_1.0.4.jar, gov.gfmis.fap.report.search.common_3.0.4.jar">';
    html +='<param name="type" value="application/x-java-applet;jpi-version=1.6.0_12">';
    html +='<param name="scriptable" value="true">';
    html +='<param name="sessionId" value="'+sessionId+'">';
    html +='<param name="webRoot" value="'+webRoot+'/'+appName+'">';

    html += '<param name="username" value="'+userName+'">';


    html += '<param name="passwd" value="'+password+'">';
    html += '<param name="app" value="/gfmis/login">';
    html += '<param name="setyear" value="'+setyear+'">';
    html += '<param name="uid" value="'+userId+'">';
    html += '<param name="sid" value="'+userId+'">';
    html += '<param name="menuid" value="'+menuid+'">';
    html += '<param name="jnlp" value="'+jnlp+'">';


    html += '<param name="usercode" value="'+userCode+'">';
    html += '<param name="menuname" value="'+menuname+'">';
    html += '<param name="isfrom" value="'+isfrom+'">';
    html += '<param name="rgcode" value="'+rgcode+'">';
    html += '<param name="sysapp" value="'+sysapp+'">';
    html += '<param name="parameterNames" value="sessionId,webRoot,username,passwd,app,setyear,uid,sid,menuid,jnlp,usercode,menuname,isfrom,rgcode,sysapp">';

    html += '<param name="gmapSystemBundles" value="org.eclipse.equinox.registry_3.5.0.v20100503.jar:1484198568000,org.eclipse.osgi.services_3.2.100.v20100503.jar:1484198566000,org.eclipse.core.runtime_3.6.0.v20100505.jar:1484198579000,org.eclipse.equinox.app_1.3.1.R36x_v20100803.jar:1484198565000,org.eclipse.core.jobs_3.5.1.R36x_v20100824.jar:1484198574000,org.eclipse.equinox.preferences_3.3.0.v20100503.jar:1484198570000,org.eclipse.core.contenttype_3.4.100.v20100505-1235.jar:1484198570000,com.ufgov.gmap.spi_1.0.0.jar:0,com.ufgov.thirdparty.hessian_3.2.1.jar:1484198495000,com.ufgov.client.basis_1.0.0.jar:0,com.ufgov.client.master_1.0.0.jar:0,com.ufgov.smartclient.component_1.0.0.jar:1484198495000,com.ufgov.smartclient.laf_1.0.0.jar:1484198495000,com.springsource.org.json-1.0.0.jar:1484198495000">';
    html += '<param name="sysapp" value="'+sysapp+'">';
    html += '<param name="ipandport" value="'+ipPort+'">';
    html += '<param name="userid" value="'+userId+'">';
    html += '<param name="usercode" value="'+userCode+'">';
    html += '<param name="username" value="'+userName+'">';
    html += '<param name="rgcode" value="'+rgcode+'">';
    html += '<param name="sid"  value="'+userId+'">';
    html += '<param name="menuid" value="'+menuid+'">';
    html += '<param name="moduleid" value="'+moduleid+'">';

    html +='<param name="isfrom" value="'+isfrom+'">';
    html +='<param name="setyear" value="'+setyear+'">';
    html +='<param name="password" value="'+password+'">';
    html +='<param name="systemview" value="1">';
    html +='<param name="bill_no" value="'+bill_no+'">';
    html +='<param name="task_type" value="'+task_type+'">';
    html +='<param name="vt_code" value="'+vt_code+'">';

    html +='<comment>';

    html +='<embed type="application/x-java-applet;version=1.6"';
    html +='pluginspage="http://java.sun.com/products/plugin/"';
    html +='java_code="com.ufgov.portal.applet.F3Applet.class"';
    html +='codebase="<%=webRoot%>/fap/client" ';
    html +='java_archive="gov.gfmis.fi.fip.client_3.0.4.jar, gov.gfmis.thirdparty.fap.jdic_1.0.0.jar, gov.gfmis.offline.common_3.0.4.jar, gov.gfmis.fr.common_3.0.4.jar, gov.gfmis.thirdparty.fap.skinlf_1.0.0.jar, gov.gfmis.pay.client.pay_3.0.4.jar, gov.gfmis.thirdparty.fap.jug_1.0.0.jar, gov.gfmis.fap.report.search.client_3.0.4.jar, servlet.jar, gov.gfmis.zxzj.common_1.0.0.jar, gov.gfmis.fap.client.workflow_3.0.4.jar, poi-2.5.1-final-20040804.jar, gov.gfmis.fi.processinspect.common_3.0.4.jar, gov.gfmis.fb.client.sh_1.0.0.jar, gov.gfmis.webservices.common_1.0.0.jar, log4j-1.2.12.jar, gov.gfmis.gp.client.sh_1.0.0.jar, jdom.jar, org.eclipse.equinox.common_3.6.0.v20100503.jar, gov.gfmis.pay.client.sh_1.0.0.jar, gov.gfmis.thirdparty.fap.pinyin4j_2.5.0.jar, gov.gfmis.salary.common.shsj_1.0.0.jar, gov.gfmis.budget.client_3.0.4.jar, com.ufgov.thirdparty.hibernate_3.0.0.jar, gov.gfmis.fb.common.sh_1.0.0.jar, jtds-1.2.2.jar, gov.gfmis.pay.common.sh_1.0.0.jar, gov.gfmis.fund.common_1.0.0.jar, jaxen-1.1-beta-4.jar, gov.gfmis.offline.client_3.0.4.jar, com.ufgov.portal.client.run_1.0.0.jar, gov.gfmis.webservices.client_1.0.0.jar, com.ufgov.portal.client.integrate_1.0.0.jar, gov.gfmis.zxzj.client_1.0.0.jar, commons-lang.jar, gov.gfmis.fr.client_3.0.4.jar, gov.gfmis.gl.client_3.0.3.jar, gov.gfmis.pay.dzzf.common_1.0.0.jar, gov.gfmis.thirdparty.gl.utilcy_1.0.0.jar, gov.gfmis.pay.common_3.0.4.jar, spring.jar, gov.gfmis.thirdparty.common.jfreechart_1.0.0.jar, gov.gfmis.budget.client.sh_1.0.0.jar, gov.gfmis.thirdparty.common.jcommon_1.0.0.jar, gov.gfmis.fi.fip.common_3.0.4.jar, gov.gfmis.budget.common_3.0.4.jar, gov.gfmis.fi.processinspect.client_3.0.4.jar, commons-codec.jar, gov.gfmis.thirdparty.fap.jbcl_1.0.0.jar, gov.gfmis.inspect.common.sh_1.0.0.jar, gov.gfmis.fund.client_1.0.0.jar, gov.gfmis.fap.common.framework_3.0.4.jar, gov.gfmis.fap.client.framework_3.0.4.jar, dom4j-1.6.jar, gov.gfmis.pay.client.plan_3.0.4.jar, ant.jar, commons-logging.jar, gov.gfmis.budget.common.sh_1.0.0.jar, gov.gfmis.fap.client.gl_3.0.4.jar, asm.jar, gov.gfmis.inspect.client.sh_1.0.0.jar, bsh-2.0b4.jar, spring-mock.jar, commons-httpclient-2.0.jar, com.ufgov.client.osgi.launcher_1.0.0.jar, gov.gfmis.fap.common_3.0.4.jar, gov.gfmis.inspectquery.client.sh_1.0.0.jar, devToolsBasic.jar, jacob.jar, gov.gfmis.report.common_3.0.4.jar, gov.gfmis.thirdparty.inspect.iText_1.0.0.jar, gov.gfmis.gl.common_3.0.3.jar, commons-beanutils.jar, com.ufgov.thirdparty.hessian_3.2.1.jar, gov.gfmis.pay.client.paycard_3.0.4.jar, gov.gfmis.thirdparty.fap.gtkskin_1.0.0.jar, commons-logging-api.jar, gov.gfmis.inspectquery.common.sh_1.0.0.jar, org.eclipse.update.configurator_3.3.100.v20100512.jar, gov.gfmis.gp.common.sh_1.0.0.jar, gov.gfmis.f_epay.client.core_3.0.4.jar, gov.gfmis.pay.dzzf.client_1.0.0.jar, concurrent.jar, gov.gfmis.report.client_3.0.4.jar, gov.gfmis.salary.client_3.0.4.jar, gov.gfmis.thirdpart.koalii.svs.czb.client_1.0.0.jar, gov.gfmis.fap.client.dictionary_3.0.4.jar, devrm300client.jar, FineCell.jar, com.ufgov.gmap.equinox.extend_1.0.0.jar, jxl-2.6.9.jar, FineReport.jar, gov.gfmis.f_epay.common.core_3.0.4.jar, gov.gfmis.thirdparty.swt_1.0.0.jar, com.ufgov.thirdparty.rhino_1.4.0.jar, gov.gfmis.thirdparty.fap.util_1.0.0.jar, gov.gfmis.salary.common_3.0.4.jar, gov.gfmis.thirdparty.fap.workflow_cy_1.0.0.jar, cglib-2.1.2.jar, org.eclipse.osgi_3.6.2.R36x_v20110210.jar, gov.gfmis.salary.client.shsj_1.0.0.jar, gov.gfmis.thirdparty.fap.forms_1.0.4.jar, gov.gfmis.fap.report.search.common_3.0.4.jar"';
    html +='java_arguments="-Xms256m -Xmx256m" scriptable="true" mayscript="true"';
    html +='sessionId="'+sessionId+'"';
    html +='webRoot="'+webRoot+'/'+appName+'"';

    html +='username="'+userName+'"';
    html +='passwd="'+password+'"';
    html +='app="/gfmis/login"';
    html +='setyear="'+setyear+'"';
    html +='uid="'+userId+'"';
    html +='sid="'+userId+'"';
    html +='menuid="'+menuid+'"';

    html +='jnlp="'+jnlp+'"';
    html +='usercode="'+userCode+'"';
    html +='menuname="'+menuname+'"';
    html +='isfrom="'+isfrom+'"';
    html +='rgcode="'+rgcode+'"';
    html +='sysapp="'+sysapp+'"';
    html +='parameterNames="sessionId,webRoot,username,passwd,app,setyear,uid,sid,menuid,jnlp,usercode,menuname,isfrom,rgcode,sysapp,username,passwd,app,setyear,uid,sid,menuid,jnlp,usercode,menuname,isfrom,rgcode,sysapp"' +
        'gmapSystemBundles="org.eclipse.equinox.registry_3.5.0.v20100503.jar:1484198568000,org.eclipse.osgi.services_3.2.100.v20100503.jar:1484198566000,org.eclipse.core.runtime_3.6.0.v20100505.jar:1484198579000,org.eclipse.equinox.app_1.3.1.R36x_v20100803.jar:1484198565000,org.eclipse.core.jobs_3.5.1.R36x_v20100824.jar:1484198574000,org.eclipse.equinox.preferences_3.3.0.v20100503.jar:1484198570000,org.eclipse.core.contenttype_3.4.100.v20100505-1235.jar:1484198570000,com.ufgov.gmap.spi_1.0.0.jar:0,com.ufgov.thirdparty.hessian_3.2.1.jar:1484198495000,com.ufgov.client.basis_1.0.0.jar:0,com.ufgov.client.master_1.0.0.jar:0,com.ufgov.smartclient.component_1.0.0.jar:1484198495000,com.ufgov.smartclient.laf_1.0.0.jar:1484198495000,com.springsource.org.json-1.0.0.jar:1484198495000"';
    html +='>';

    html +='<noembed> &lt;hr&gt; this explore not support plug in </noembed></comment>';
    // html +=' </object>';
    $('#f3Main').html(html);
    // var height = screen.availHeight;
    // var width = screen.availWidth;
    //
    var applet = $("#f3Main");
    applet.show(ipPort ,sysapp ,userId ,userId ,setyear ,userCode ,userName ,password ,null ,null ,'1' ,null ,null ,rgcode,menuid ,moduleid ,isfrom ,bill_no ,task_type ,vt_code);



}